import { tenantUtils } from 'hussar-base';
export function setLinkDom() {
  const dom = document.createElement('link');
  dom.rel = 'stylesheet';
  dom.type = 'text/css';
  const API = process.env.VUE_APP_HUSSAR_DEFAULT_API;
  const pageType = process.env.VUE_APP_PAGE_TYPE;
  const href = API + '/themeConfig/getThemeConfigCss.css?themeId=&type=' + pageType;
  // url登录且登录状态
  dom.href = tenantUtils.setTcodeForHref(href);
  dom.charset = 'utf-8';
  document.head.appendChild(dom);
}

setLinkDom();

